﻿using System;
using System.Threading.Tasks;
using Abp.Domain.Services;
using Mt.Site.Application.ContentManagement.Preview.Dto;

namespace Mt.Site.Core.ContentManagement.Preview
{
    public interface IPreviewDataManager : IDomainService
    {
        /// <summary>
        /// 浏览预览页
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        Task<PreviewData> GetPreviewCacheDataAsync(string token);


        Task<PreviewTokenInfo> GetPreviewTokenAsync(PreviewTokenInput input);

        Task<PreviewTokenInfo> UpdateTokenExpireTimeAsync(SetPreviewExpireTimeInput input);
    }
}
